#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_QtWidgetsApplication.h"
#include <QPushButton>
#include <QLineEdit>
//这里要声明在.h 不然报错

class QtWidgetsApplication : public QMainWindow
{
    Q_OBJECT

public:
    QtWidgetsApplication(QWidget *parent = nullptr);
    ~QtWidgetsApplication();
    void setupUi();
    void Connection();
    void setupCentralWidget();
    bool setWindowsWallpaper(const QString& imagePath);
    
private:
    Ui::QtWidgetsApplicationClass ui;
    QPushButton * button;  // 必须要有这行声明
    QPushButton * saveButton;
    QLineEdit * lineEdit;
    QPushButton* setIcon;

private slots:
	void UploadFile();
    void SaveFile();


};

